<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>WXSHOP</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="description" content="User login page" />
        <%@include file="./common/css.jsp" %>
        <%@include file="./common/js.jsp" %>
	</head>
    <body class="login-layout">
			<br><br>
			<div class="main-container container-fluid">
				<div class="main-content">
					<div class="row-fluid">
						<div class="span12">
							<div class="login-container">
								<div class="row-fluid">
									<div class="center">
										<h1>
											<i class="icon-leaf green"></i>
											<span class="red">&nbsp;</span>
											<span class="white"></span>
											
										</h1>
									</div>
								</div>
	
								<div class="space-6"></div>
	
								<div class="row-fluid">
									<div class="position-relative">
										<div id="login-box" class="login-box visible widget-box no-border" style="margin-top: 80px;">
											<div class="widget-body">
												<div class="widget-main">
                                                    <c:if test="${message == null }">
													<h4 class="header blue lighter bigger pagination-centered">
														请输入你的登录信息
													</h4>
													</c:if>
													<c:if test="${message != null }">
													<h4 class="header red lighter bigger pagination-centered">
														${message}
													</h4>
													</c:if>
													<div class="space-6"></div>
	
													<form action="<%=request.getContextPath()%>/login" method="post" id="login">
														<fieldset>
															<label>
																<span class="block input-icon input-icon-right">
																	<input type="text" class="span12" name="userName" value="${userName}" placeholder="UserName" />
																	<i class="icon-user"></i>
																</span>
															</label>
	
															<label>
																<span class="block input-icon input-icon-right">
																	<input type="password" class="span12" name="password" value="${password}" placeholder="Password" />
																	<i class="icon-lock"></i>
																</span>
															</label>
	
															<div class="space"></div>
		
															<div class="clearfix">
																<button onclick="document.getElementById('login').submit();"  class="width-35 pull-right btn btn-small btn-primary">
                                                                                                                                                                                                                       登录
																</button>
															</div>
															
															<div class="space-4"></div>
														</fieldset>
													</form>
													<div class="social-login center">
													</div>
												</div><!--/widget-main-->
											</div><!--/widget-body-->
										</div><!--/login-box-->
	
									</div><!--/position-relative-->
								</div>
							</div>
						</div><!--/.span-->
					</div><!--/.row-fluid-->
				</div>
			</div><!--/.main-container-->
		</body>
</html>